<template>
    <div id="payment">

        <van-button color="#B7282E" @click="Pay()">微信支付 ￥{{$store.getters.Price}}</van-button>
        
    </div>
</template>

<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        // 微信支付
        Pay(){
            localStorage.removeItem("vuex");
            this.cartdata = [];
            this.$router.push("/");
        },
    },
}
</script>

<style lang="scss">
#payment{
    width: 100%;
    height: 100%;
    .van-button{
        width: 100%;
        position: fixed;
        left: 0;
        bottom: 0;
    }
}
</style>